<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('导入试卷')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paper_id" data-rule="required" min="0" data-source="coursepaper/index" class="form-control selectpage" name="row[paper_id]" type="text" value="{$ids}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-attachment" class="control-label col-xs-12 col-sm-2">选择文件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-attachment"  data-rule="" class="form-control" size="50" name="row[attachment]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-attachment" class="btn btn-danger faupload" data-input-id="c-attachment"  data-url="ajax/uploadAndReturnShortUrl" data-mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" data-multiple="false" data-preview-id="p-attachment"><i class="fa fa-upload"></i> 上传</button></span>
                </div>
                <span class="msg-box n-right" for="c-attachment"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-attachment"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('模板文件')}:</label>
        <div class="col-xs-12 col-sm-8">
            <a href="/assets/template/question/import_question_template.xlsx" target="_blank" class="btn btn-success" title="点击下载模板文件"><i class="fa fa-download"></i> 点击下载模板文件</a>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
